package cn.rwklyd.BookKeeping.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "permissions")
public class Permission {
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "权限ID")
    private Integer id;

    @TableField(value = "permission_name")
    @Schema(description = "权限名称")
    private String permissionName;

    @TableField(value = "description")
    @Schema(description = "权限描述")
    private String description;

    @TableField(value = "created_at")
    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @TableField(value = "updated_at")
    @Schema(description = "更新时间")
    private LocalDateTime updatedAt;
}
